package com.zq.structure.composite;

import java.util.stream.IntStream;

public class Client {
    public static void main(String[] args) {
        MyList<Integer> list = new MyList<>();

        IntStream.rangeClosed(0, 10).forEach(list::add);
        System.out.println(list.getAddCount());
    }
}
